package com.newshub.ai.model.dto;

import lombok.Data;
import java.util.List;

/**
 * 聊天请求DTO
 */
@Data
public class ChatRequest {

    /**
     * 用户消息
     */
    private String message;

    /**
     * 系统提示词
     */
    private String systemPrompt;

    /**
     * 对话历史
     */
    private List<ChatMessage> history;

    /**
     * 模型参数
     */
    private ModelParams modelParams = new ModelParams();

    /**
     * 模型参数
     */
    @Data
    public static class ModelParams {
        private Double temperature = 0.7;
        private Integer maxTokens = 2000;
        private Boolean stream = false;
    }

    /**
     * 聊天消息
     */
    @Data
    public static class ChatMessage {
        private String role; // user, assistant, system
        private String content;
        private Long timestamp;
    }
}
